package cn.wenhe9.novel.domain.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;

/**
 * 用户信息更新
 * @author DuJinliang
 * 2022/5/20
 */
@Data
public class UserInfoUpdateVo {

    private Long userId;

    @Length(min = 2,max = 11)
    private String nickName;

//    @Pattern(regexp= "^/[^s]{10,}\\.(png|PNG|jpg|JPG|jpeg|JPEG|gif|GIF|bpm|BPM)$")
    @URL
    private String userPhoto;

    @Min(value = 0)
    @Max(value = 1)
    private Integer userSex;

}
